﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;

namespace Goway.StackingUC.Entity
{
    /// <summary>
    /// 设备信息
    ///</summary>
    [SugarTable("DeviceInfo")]
    public class DeviceInfo
    {
        /// <summary>
        /// 编号 
        ///</summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 编码 
        ///</summary>
        [SugarColumn(ColumnName = "Code")]
        public string Code { get; set; }

        /// <summary>
        /// 设备类型（1扫描枪 2Stacking） 
        ///</summary>
        [SugarColumn(ColumnName = "DeviceType")]
        public int? DeviceType { get; set; }

        /// <summary>
        /// 层数 
        ///</summary>
        [SugarColumn(ColumnName = "LayerNum")]
        public int? LayerNum { get; set; }

        /// <summary>
        /// 承重 
        ///</summary>
        [SugarColumn(ColumnName = "WeightCapacity")]
        public int? WeightCapacity { get; set; }

        /// <summary>
        /// 设备IP 
        ///</summary>
        [SugarColumn(ColumnName = "DeviceIP")]
        public string DeviceIP { get; set; }

        /// <summary>
        /// 设备端口 
        ///</summary>
        [SugarColumn(ColumnName = "DevicePort")]
        public int? DevicePort { get; set; }

        /// <summary>
        /// 所属库区 
        ///</summary>
        [SugarColumn(ColumnName = "AreaId")]
        public int? AreaId { get; set; }

        /// <summary>
        /// 是否可用 
        ///</summary>
        [SugarColumn(ColumnName = "IsValid")]
        public bool? IsValid { get; set; }

        /// <summary>
        /// 描述 
        ///</summary>
        [SugarColumn(ColumnName = "Description")]
        public string Description { get; set; }
    }
}
